Exclude frames
It is possible to exclude frames from a 360 viewer. This is useful when you do not want to show the back of a bed for example.
9
25
<cylindo-viewer customer-id="5098" code="KINGBED PDP">
<cylindo-360 frames="[11, 12, 13, 14, 15, 16, 17, 18]"></cylindo-360>
</cylindo-viewer>
Use the remote config
Curator can be used for controlling frame ranges from the Cylindo CMS.
Frame index edge case when excluding frames
If you are programatically changing the number of frames or applying custom animations, please note that the viewer uses the index of the frames by order of appearance, instead of the actual frames number.
Example: Let us assume you passed to cylindo-360
element frames
of value [11, 12, 13, 14, 15, 16, 17, 18]
.
Internally, the viewer will use frames indexes instead. ([1, 2, 3, 4, 5, 6, 7, 8]
).
To animate from frame "11" to "15":
viewer.store.dispatch("frame/animate", {
from: 1,
to: 5,
});